package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import org.springframework.web.bind.annotation.PathVariable;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void addEmployee(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult employeePaginationQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用禁用员工账号
     * @param status
     * @return
     */
    void enableAndDisableEmployeeAccounts(Integer status,Long id);

    /**
     * 根据ID查询员工，数据回显
     * @param id
     * @return
     */
    Employee searchEmployeeById(Long id);

    /**
     * 根据id修改员工
     * @return
     */
    void modifyEmployeesById(Employee employee);
}
